package com.tingyuge.io.sqlSession;

import com.tingyuge.io.pojo.Configuration;

/**
 * @author xiaodao
 * @version 1.0
 * @date 2021/6/6
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory{
    private Configuration configuration;
    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration=configuration;
    }

    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
